package gminet.infra.dao;

import java.io.Serializable;

public abstract class TransferObject implements Serializable {

    private static final long serialVersionUID = -5261949957023223292L;

    private int id;

    public TransferObject() {

        super();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object simpleObject) {

        boolean isEqual = false;
        if (simpleObject instanceof TransferObject) {
            isEqual = ((TransferObject) simpleObject).getId() == getId();
        }
        return isEqual;
    }

}
